﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;

namespace Kira.Compiler.Bods
{
    internal static class XElementExtension
    {
        internal static String GetKey(this XElement xml)
        {
            return xml.Name.ToString().ToUpper();
        }

        internal static String GetNameKey(this XAttribute xml)
        {
            return xml.Name.ToString().ToUpper();
        }

        internal static String Getkey(this XAttribute xml)
        {
            return GetNameKey(xml) + "=\"" + xml.Value.ToUpper() + "\"";
        }
    }
}
